created partials from error messages and flash messages