made changes so that only a logged in user can create new users