improoved the checkInOut.php