Fixed invalid credentials error