Updates to the Login routine.