adding flash messages to edit modal