inDatabase = true;
PasswordCrypto crypto = new PasswordCrypto();
if(crypto.passwordsEqual(result.getUserPassword(), enteredPassword) == false
&& enteredPassword.equals("") == false) {
context.addMessage("logInForm:enteredPassword",
new FacesMessage(FacesMessage.SEVERITY_ERROR,
"Wrong password for " + this.enteredMail + "!", ""));
context.validationFailed();