Implementing a form handling controller