added the form_for helper and left all three versions in the controller file