Added domain name validation with XRegExp
Better commenting