Bugfixes on the server related to registration