Added error message handling to FormMixin