Validate the keep value