Rework of LoginFailed module. Still a little q&d