register form errors are properly displayed