remove register function call in oauth