Added save of userName to cookies