refactor users POST create handle invitations a bit