showing only the necessary info to the users who are not logged in