Corrected validate_boolean function. Was incorrectly checking the type being returned from filter_var call.