User registration with invitation code (unfinished)