Added callback to execute after login attempt.