Fixed authentication issue