fixed crashing when trying to sign up
Merge pull request #57 from antonow/more-bug-fixes

fixed crashing when trying to sign up