added register function
Merge pull request #20 from yuki1107/loginRegister

added register function