the error message logic should have a partial which can be render, how about we use that approach?