Added check to prevent logged in users from registering.