a not so good half-distracted attempt at getting login up and running