adding files, directories and simple authenticate users using cookies and sessions