Resolve issues in create user. Fixes #14 Fixes #13 Fixes #12