Validate register form