added createUser method in user model