made corrections to validation syntax