Login complete except for bugs, added showOverlay function, want to change it to a plugin at some point.