Fixed - authentication works correctly