creating the form handler