register form validation & errors