edit thread
validations and error messages