custom client auth and registration