fixed validation, added newline stripping to other fields