Check required field at submit