adding reset password logic