This will be executed on every login attempt, maybe move this to 'logInvalidAttempt'