register/login api implemented