Fixed form errors not being displayed properly