Added method for getting labels from input fields for use in other forms.