adds render for error message partial