added login call to the api
merged in changes