created User model and sessions cookie