adding the createUser() method

Ready for merge.