Finaly its work. But need to be refactored, and add secutiry cheks