Added validation of the login information from the web service.