validate register information
Merge pull request #11 from phuongnq/master

validate register information