commented out flash error messages in the view and changed the error messages in the controller for assignments. Also commented out the portion of the form that was not working correctly. If the form is not working it breaks the error messages. New behavior is that is flashes a message while staying on the page and leaving the filled our portion of the form intact.