added register
Merge pull request #8 from electrocex/master

Direct auth implemented