Partially fixed the multiple classes bug (with standard validations).
Added a function to add validation/formatting classes dynamically