Debugged login_attempt handling