connect the login view to server side