fixed dato format.
fixed bug when logged in second time