Added encryption of the password before it is stored in a cookie.