formatting and fixed AuthenticationDenied