basic functions realization, but need make real login/logout