Fix auth validation