removing use of 'valid' field in edit_activity