Fix registration not sending correctly-formatted data to client. Log more stuff.