add attribution for check_login
improve check_login logging