Fixing validation syntax with a semicolon on wrong place