fixing authenticate result