Add error handling to SimpleAuthController.cs.pp