Add authentication code