That was the problem, as soon as I posted this question it became apparent to me. What still puzzles me is the fact that is would work with out the newline when I only called the "userLogin()" sub with out catching the return value.
Thanx for you help