but then why do you need getUserName() method?
as i understand your input is username and you need to look for his password in .txt file, is that right?