Changed validation of scope variable to use scope constants