changed login portion to recognize  both command objects and text strings