add login functionality for api
ui updates