Fixed bad call to logged_in()