Modularised LoginAuto class. Dummy main and default constructor present
for testing purposes.