cSharp login altered to accept an ApplicationKey