Implemented invite-only registration

The registration now requires an invitation code.
To-do: Error messages in case the code is invalid or already in use.