Added login interface with a couple of methods.