sign up / sign in api refactoring