Added login related stuff.