changing this because ctx is commonly used with the context package.
The invite route no longer calls checkInvite, instead just chekcing the invite exists. This speeds up page loading. the 404 and invalidCode pages are now loaded when necessary.
Fixed password validation for new users, add invite route, couple other fixes.