Authenticate

Replaced the login api call with a call to authenticate