added validation methods for webservice