Updated error codes for authentication