updating form to reflect rails syntax