Fixed error handling while password reset