user login/register using promises, in User service