Added check for user registration.
Added a check for if the user exists.
Merge pull request #9 from kokx/fix/register-user-exists

Fix for registration of users that already exist