add flash error messages for users new and edit views