Got authentication and registration errors working