fixed error when registering from invitation
Merge branch 'main' into devel