@using System.Security.Claims

Access Denied: @(User?.Identity?.Name ?? "User") is not authorized to view this page.

@{ var dateOfBirth = User?.FindFirst(c => c.Type == ClaimTypes.DateOfBirth)?.Value; }

Date of birth: @(dateOfBirth ?? "")