Add error handling to reset password