Remove the $$ from your validation formula and it will adjust.