Two version. Add simple js validators.