Fix required field calculation in AuthenticationRequest