rename is_logged_in() to check_login()