implements login
Creared unused files, implemented environment sending