added createUser and authUser