Apply webservice to Login and Logout