Fixed misspelling of variable loginKey