Fix authentication