Fixed register_computer function