hook up login view controller to api