Fix boolean input, add stdlib validation to it