Checked if user is logged in and added to session