updated Validation and added minified version