Updated login test script to fix JSHint error and syntax issue