updated cas validation