improved functionality when user is logged out