Trying to changed code to login the user instead of manually supplying cookie values.

Currently the "a" cookie does not get captured for some reason.