added login changes
changed main and login