Added date toggle and form clearFields() function