added isValidator
improved isValidator function
introduced register
fixed register params issue
finished all basic validator tests