Implemented mandatory field requirement for text fields.