added validation and delete methods for tokens