Authentication works correctly now.