need a new cookie architecture

login process doesn't work: users in db are duplicates. will rewrite the cookie schema to simplify the functions
started recasting to 2.0