simplified check_login