Some fiddling with the authentication controller.