Fix patern for authetification errors