Fixed some problems with user creation