fix register form error messages