> I wanted to avoid this:
> 
>     if (user.nil? || user.empty?) && !(pswd.nil? || pswd.empty?)

You could do something like:

	if user.to_s.empty? && pswd.to_s.empty?

Jason Creighton