login and register done, basically