fixed issues with flash in invitations_contoller showing up improperly