Edited security token validation message to provide more information, closes #995.