Validate if value is set correctly