Handle validate category before submit