register and login API feature complete