Added optional invite code to registration route