Some redesign.
Added cookie usage for login.