Also validate incoming contrast/brightness values.