finished building the validation for textboxes