login mostly working