added actual functionality to createusers.sh