Change check_id method to compate integers