got reset password functionality working