Validate text fields