Fix authentication bug - no more error