Fixed small bug in register, working out localStorage syncing