Added check to prevent logged in users from resetting their password.