Add authentication functions