Removed redundancy in validations.
Added option to specify validations in the html (like Angular)