Made a working auth class