added status.h to tsmain.cpp and tightened the loop in validateUser