Extracted function for creating labelled text fields.