fix the 2 failures in login_test_chech.php

bool error return and unused var $charset