Added back the asert code in the auth