Wrote integration test for resetting password and implemented inviting users