add register and change password api