add validations on text fields