user login redir: clarify logic, fix test

refs #3552