Validation for symbols

I have added validation for symbols
Merge pull request #4 from closca/master

Validation for symbols