Getting the form elements to work correctly.