Refactor to improve errors rendering.
Fix error rendering in registro_de_hora edit page.