Added checks if user is logged in