Added check to prevent logged in users from retrieving their username.