Rename function checkLoggedIn -> userIsLogged