added some verifications in register
Merge branch 'master' of https://github.com/nick9999/cs252