added debugging to form fields.