Added token generation to Email model