updated newuser to support adding groups