create invitation associated with user
fix issues with invitation_spec