fix the login check route in the sample file