nicer generated error message and styling for forms