fixed the createUser function.
added code to pull page and options based on user's group