validation structure streamlined

moved streamreader closure to main class

removed unnecessary if structure for txt file read (added stream read at
beginning and end of while)

simplified validation structure inside of while:

removed usernameCopy and passwordCopy and combined into copy variable.
each one of the previous will be represented by 1 or 2
removed uncesserary ifs and created switch based on copy