Don't check if the user is logged in if it's forced.
Refactor function to be cleaner and not continually redirect people if they are logged in.