Invitation code functionality added for user registration