added validations on symbols and context