Basic auth and registration