login and register via rest interface