More login component work, with unit tests