Added length validator
Added regex validator