In clear_login! replace File.open().each with File.read().each_line