Refactored the login module to use REST webservice instead of the SOAP