Fixed a bug with hashing of passwords in cookies