Add authentication functionality