Added cookie login
Fixed some date issues