Validate by javascript register form