fixed password verification problem-missing if statement