Added validations for each element. Added min and maxlength input validators