added createUser functionality