finished reset password functionality