Implement authentication dialog