Added ui to api with login and register