logged_in checker fixed