register compatible with fosoauth