add basic validate functions
add basic validate functions

iwillhappy1314/validator.js,sxm20074428/validator.js,iwillhappy1314/validator.js,sxm20074428/validator.js,TerminusHQ/validator.js,sofish/validator.js,TerminusHQ/validator.js,sofish/validator.js