Added ajax to send the token to php