Starting to work on the DoLogin feature