First attempt at login_failed hook