added writer.write() to add a new line to the username.txt
changed writer.write() to writer.newLine()