Added Sam code for storing cookies to login screen