add validation for mongotextfield