debugged and get usernames and passwd from commandline.