prevent double registration
Merge pull request #10 from dotch/master

prevent double registration