added loggedIn property to profile