Updated user creation fn