Change to use AuthenticationException since ApplicationException does not exist in SL5
fix/format whitespace in Razor pages