Fix $path error that doesn't allow login