Move read_line() further down so that it can be used in checkwps and remove checkwps...