Added login control