first draft of the invite switch method done-needs refactoring and the successful feature test for the patient signup on invite to be done next