loggedin logic for displaying modal