fixing the password validation