Add loggedIn validation