Move credentials require into else case.