Authentication errors working