Added user existence check to LoggedIn