fixed bugs related to password reset