you're logging into have an API... that would be a lot easier and more robust.

~Sovereign