add shared/_error_messages to new and view templates